#include<stdio.h>
double f;
int main()
{
	scanf("%lf", &f);
	printf("%d %.4lf", (int)f, f-(int)f);
	return 0;
}
